<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="http://localhost/company01/data/css/base.css"/>
</head>
<body style="padding:10px;">
    <div class="path">
        <strong>您现在的位置：</strong>
        <a href="#">文章管理</a>
    </div>
    <div class="send1">
        <a href="http://localhost/company01/index.php/admin/news/add_show"  class="current button1">发表文章</a>
    </div>
    <table class="table1">
        <thead>
            <tr>
                <td width="10"><input type="checkbox" /></td>
                <td width="30">ID</td>
                <td>标题</td>
                <td width="160">栏目</td>
                <td width="60">点击率</td>
                <td width="100">作者</td>
                <td width="150">发布时间</td>
                <td width="60">审核</td>
                <td width="230">操作</td>
            </tr>
        </thead>
        <tbody>
        <?php if(!empty($news)){$listCount = count($news);$list_id=0;?><?php foreach($news as $key=>$v){?>
        <tr>
            <td width="10"><input type="checkbox" name="del"/></td>
            <td width="30"><?php echo $v['id'];?></td>
            <td><?php echo $v['title'];?></td>
            <td width="160"><?php echo $v['cname'];?></td>
            <td width="60"><?php echo $v['click'];?></td>
            <td width="100"><?php echo $v['username'];?></td>
            <td width="150"><?php echo date("y-m-d",$v['addtime']);?></td>
            <td width="60"><?php if($v['status']){?>已审核<?php  }else{ ?>未审核<?php }?></td>
    <td width="230" style="font-size:12px;">
        <a href="http://localhost/company01/index.php/admin/news/restore/id/<?php echo $v['id'];?>">还原</a> | 
        <a href="http://localhost/company01/index.php/admin/news/del_news/id/<?php echo $v['id'];?>">删除</a>
    </td>
</tr>
<?php $list_id+=1;?><?php }?><?php }?>
</tbody>  
</table>
<div class="send2 l">
    <a href="#" class="button1">全选</a>
    <a href="#" class="button1">返选</a>
    <a href="#" class="button1">删除</a>
</div>
<div class="page r" style="margin-top:10px;"><?php echo $page;?></div>
</body>
</html>
